import request from "@/util/request";


export function spiderGetList(rowNum){
    return request({
        url: '/spider/getSpiderList',
        method: 'get',
        params: { rowNum }
    })
}

export function pushOrder(data) {
    return request({
        url: '/spider/pushDownloadOrder',
        method: 'post',
        data: data
    })
}

export function realTimeSpider(data) {
    return request({
        url: '/spider/realTime',
        method: 'post',
        data: data
    })
}

export function getExecuteList(spiderCode) {
    return request({
        url: '/spider/getExecuteSpider?spiderCode=' + spiderCode,
        method: 'get'
    })
}

export function getOverExecuteList(spiderCode) {
    return request({
        url: '/spider/getOverExecuteSpiderList?spiderCode=' + spiderCode,
        method: 'get'
    })
}

export function excelSpiderExecute(id, spiderCode) {
    return request({
        url: '/spider/excel?spiderLogId=' + id + '&spiderCode=' + spiderCode,
        method: 'get',
        responseType: 'blob'
    })
}

export function deletedSpider(id){
    return request({
        url: '/spider/delete/' + id,
        method: 'delete'
    })
}
